package com.miplus.ccrm.workflow.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.yulichang.base.MPJBaseService;
import com.miplus.ccrm.common.CmdResVo;
import com.miplus.ccrm.workflow.model.common.DeleteRequest;
import com.miplus.ccrm.workflow.model.dto.knowledge.KnowledgeQuestionCreateDTO;
import com.miplus.ccrm.workflow.model.dto.knowledge.KnowledgeQuestionQueryDTO;
import com.miplus.ccrm.workflow.model.dto.knowledge.KnowledgeQuestionUpdateDTO;
import com.miplus.ccrm.workflow.model.po.WorkflowKnowledgeQuestion;
import com.miplus.ccrm.workflow.model.vo.KnowledgeQuestionVO;

/**
 * @author feixiang
 * @description 针对表【workflow_knowledge_question(知识库问题表)】的数据库操作Service
 * @createDate 2025-11-04 20:48:14
 */
public interface WorkflowKnowledgeQuestionService extends MPJBaseService<WorkflowKnowledgeQuestion> {
    /**
     * 逻辑删除知识库问题
     *
     * @param id 问题ID
     * @return 是否删除成功
     */
    boolean deleteById(Long id);

    CmdResVo cereateKnowledgeQuestion(KnowledgeQuestionCreateDTO questionDTO);

    CmdResVo updateKnowledgeQuestion(KnowledgeQuestionUpdateDTO questionDTO);

    CmdResVo deleteKnowledgeQuestion(DeleteRequest deleteRequest);

    IPage<KnowledgeQuestionVO> getKnowledgeQuestionList(KnowledgeQuestionQueryDTO query);
}